<?php
$projectsListIgnore = array ('.','..');
$handle=opendir(".");

$title = 'web';

$projectContents = '';
while ($file = readdir($handle)) {
    if (is_dir($file) && !in_array($file,$projectsListIgnore)){
        $projectContents .= '<li><a href="'.$file.'" target="_blank">'.$file.'</a></li>';
    }
}
closedir($handle);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
    <title><?php echo $title; ?></title>
<style type="text/css">
* { margin: 0;padding: 0;}
html {background: #ddd;}
body {margin: 1em 10%;padding: 1em 3em;font: 80%/1.4 tahoma, arial, helvetica, lucida sans, sans-serif;border: 1px solid #999;background: #eee;position: relative;}
h2 {margin: 0.8em 0 0 0;}
ul {list-style: none;margin: 0;padding: 0;}
ul.projects {list-style: none;line-height: 24px;}
ul.projects a {padding-left: 22px;font-size:14px;}
dl {margin: 0;padding: 0;}
dt {font-weight: bold;text-align: right;width: 11em;clear: both;}
dd {margin: -1.35em 0 0 12em;padding-bottom: 0.4em;overflow: auto;}
a {color: #024378;font-weight: bold;text-decoration: none;}
a:hover {color: #04569A;text-decoration: underline;}
#foot {text-align: center;margin-top: 1.8em;border-top: 1px solid #999;padding-top: 1em;font-size: 0.85em;}
</style>
</head>
<body>
    <h2>Project List</h2>
    <ul class="projects">
    <?php echo $projectContents; ?>
    </ul>
    <ul id="foot">
        <li><a href="#"><?php echo $title; ?></a></li>
    </ul>
</body>
</html>